<template>
	<!-- @click="evaluation(0, data.review_info[0].id)" -->
	<view class="mainColumn" v-if="review_info">
		<text class="text36 textwbold">{{ review_info.title }}</text>
		<view class="mainRow" style="margin-top: 30rpx;">
			<view v-for="(m, index) in review_info.img" :key="index">
				<u-image width="210rpx" height="200rpx" border-radius="10rpx" :src="m"></u-image>
			</view>
		</view>
		<view class="mianRow text32 b_color" style="margin-top: 15rpx;">
			<text>{{ review_info.title }}</text>
			<text style="margin-left: 50rpx;">评论{{ review_info.comment_count }}</text>
			<text style="margin-left: 50rpx;">{{ timeType==1?review_info.time:review_info.created_at }}</text>
		</view>
	</view>
</template>

<script>
export default{
	/*
		review_info : 完整数据 
		timeType : 控制时间的展示 默认1:xx月前， 2:2022-2-2
	*/
	props:{
		review_info:{
			type:Object,
			default:{}
		},
		timeType:{
			type:String,
			default:'1'
		}
	}
}
</script>

<style scoped>
.mainRow{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
</style>